package cn.kgc.tangcco.controller;

import cn.kgc.tangcco.model.ResponseText;
import cn.kgc.tangcco.pojo.Clazz;
import cn.kgc.tangcco.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 李昊哲
 * @Description
 * @create 2020/12/26 15:49
 */
@RestController
@RequestMapping(value = "/clazz")
public class ClazzHandler {
    @Autowired
    private ClazzService clazzService;

    @GetMapping(value = "/queryclazz")
    public ResponseText<List<Clazz>> queryclazz() {
        return clazzService.queryClazzes(new Clazz());
    }
}
